package com.cskaoyan.shopping.service.impl;

import com.cskaoyan.shopping.dal.persistence.ItemCatMapper;
import com.cskaoyan.shopping.dal.persistence.ItemMapper;
import com.cskaoyan.shopping.dto.HomeCategoryDto;
import com.cskaoyan.shopping.service.CateGoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wuwen
 * @since 2022/10/25
 * 17:04
 */
@Service
public class CateGoryServiceImpl implements CateGoryService {
    @Autowired
    ItemCatMapper itemCatMapper;
    @Override
    public List<HomeCategoryDto> search() {
        List<HomeCategoryDto> homeCategoryDtos = itemCatMapper.selectItem();
        return homeCategoryDtos;
    }
}

